home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000154_icon-group-sender _Tue Jul 13 16:36:15 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id QAA21471
  4.     for icon-group-addresses; Tue, 13 Jul 1999 16:35:48 -0700 (MST)
  5. Message-Id: <199907132335.QAA21471@baskerville.CS.Arizona.EDU>
  6. From: "Iain Alexander" <ia@stryx.demon.co.uk>
  7. To: icon-group@optima.CS.Arizona.EDU
  8. Date: Tue, 13 Jul 1999 23:16:49 +0100
  9. Subject: Re: Versions 9.3.2 of Icon and IPL available for Unix
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12.  
  13. On 13 Jul 99, at 12:18, Hugh Sasse wrote:
  14.  
  15. > On 10 Jul 1999, Gregg Townsend wrote:
  16. > > Version 9.3.2 adds one new feature to Icon:  The files in a directory
  17. > > can be listed by opening the directory as a file.  Subsequent reads
  18. > > return the names of the files contained in the directory.  The names
  19. > > are returned in no particular order, and for Unix, the directories
  20. > > "." and ".." are included. 
  21. > > 
  22. > I cannot see a function which will allow one to determine if the list of
  23. > names one is reading is due to reading a genuine directory or a file
  24. > produced by 'ls -a > files'.  There seems to be no stat or lstat function.  
  25. > Have I missed something?
  26.  
  27. Perhaps.  You appear to want to open("directory/files"), whereas you actually 
  28. open the directory itself - open("directory").
  29.  
  30. Or perhaps *I've* misunderstood. :-)
  31.  
  32. -- 
  33. Iain Alexander               PGP 1024-bit key id B501A0AD
  34. ia@stryx.demon.co.uk   I.Alexander@bra0105.wins.icl.co.uk
  35.